<a id="link" href="chrome-extension://ggmldgjhdenlnjjjmehkomheglpmijnf/test2.png">link</a>
<script>
document.body.onload = function() {
  link.click();
}
</script>